import service from '@/utils/request'

/*
 * @Author: zhouhx
 * @Description: 详情
 * @Date: 2022/10/14 15:17
 */
export const projectApi = (id: number) => {
  return service.get('/gen/project/' + id)
}

/*
 * @Author: zhouhx
 * @Description: 修改/新增
 * @Date: 2022/10/14 15:17
 */
export const projectSubmitApi = (dataForm: any) => {
  if (dataForm.id) {
    return service.put('/gen/project', dataForm)
  } else {
    return service.post('/gen/project', dataForm)
  }
}

/*
 * @Author: zhouhx
 * @Description: 分页
 * @Date: 2022/10/14 15:17
 */
export const projectPageApi = () => {
  return service.get('/gen/project/page')
}

/*
 * @Author: zhouhx
 * @Description: 列表
 * @Date: 2023/3/21 11:34
 */
export const projectListApi = () => {
  return service.get('/gen/project/list')
}
